//
//  WAMallSendGoodsCell.m
//  WalkiOS
//
//  Created by luqiuan on 2019/11/7.
//  Copyright © 2019 Chenmuzhou. All rights reserved.
//

#import "WAMallSendGoodsCell.h"

@implementation WAMallSendGoodsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (IBAction)copyNumber:(id)sender {
    UIPasteboard * pastboard = [UIPasteboard generalPasteboard];
    pastboard.string = _model.thirdno;
    [WNTool show:@"复制ID成功"];
}

- (void)setModel:(WAOrderModel *)model{
    _model = model;
    self.goodNumLB.text = [NSString stringWithFormat:@"商品编号：%zd",model.ID];
    self.priceLB.text = [NSString stringWithFormat:@"价格：%@",model.thirdname];
    self.kuaidiNumLB.text = [NSString stringWithFormat:@"物流：%@",model.thirdno];
    self.kuaidiCompanyLB.text = [NSString stringWithFormat:@"物流编号：%.1f雨露",model.price];
    self.goodNameLB.text = model.productname;
    [self.goodImageView sd_setImageWithURL:[NSURL URLWithString:model.imageurl] placeholderImage:[UIImage imageNamed:@"default"]];
}

@end
